//
//  UILabel+Extensions.swift
//  status
//
//  Created by 彳亍 on 2017/3/22.
//  Copyright © 2017年 彳亍. All rights reserved.
//

import UIKit

extension UILabel {

    /// 便利构造器
    ///
    /// - Parameters:
    ///   - text: 文本
    ///   - textColor: 文本颜色
    ///   - fontSize: 文本字体
    ///   - numberOfLines: 行数（默认自动换行）
    ///   - textAlignment: 对齐方式（居中对齐）
    convenience init(text:String?,textColor:UIColor,fontSize:CGFloat = 14,numberOfLines:Int = 0,textAlignment:NSTextAlignment = .center ) {
        self.init()
        self.text = text
        self.textColor = textColor
        self.font = UIFont.systemFont(ofSize: fontSize)
        self.numberOfLines = numberOfLines
        self.textAlignment = textAlignment
    }
    

}
